
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<style type="text/css">
		body{
			margin-top: 40px;
		}
	</style>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<div class="navbar navbar-fixed-top"  >
		<div class="navbar-inner" >
		
			<div class="container">
			<marquee scrolldelay="40" direction="right" onmouseover="this.stop()" onMouseOut="this.start()">
				<a class="brand" href="main.jspx" style="color:red;margin-top:0px;">凯盛项目管理系统  欢迎你的登陆！</a>
				</marquee>
			</div>
		</div>
	</div>
	
	
	<div class="container" id="s" >
	  <div class="row"  >
		<div class="span3" >
			<div style="padding: 8px 0;" class="well">
				<ul class="nav nav-list">
				  <li class="nav-header">新Apple总部项目</li>
				  <li class="divider"></li>
				  <li class="active"><a href="pro.jspx?_m=lm&id=${sessionScope.mypro.id}"><i class="icon-white icon-home"></i>最新动态</a></li>
				  <li><a href="goal.jspx?_m=s1"><i class="icon-flag"></i>目标</a></li>
				  <li><a href="document.jspx?_m=d1"><i class="icon-folder-open"></i>资料库</a></li>
				  <li><a href="file.jspx"><i class="icon-file"></i>文件共享</a></li>
				  <li><a href="contact.jspx?_m=c5"><i class="icon-user"></i>联系人</a></li>
				  <li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
				  <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
				  <li><a href="#"><i class="icon-cog"></i>项目设置</a></li>
				</ul>
			</div>
		</div>
		







		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="idea.jspx"><i class="icon-fire"></i>想法</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="idea.jspx?_m=add" class="link-black">发表想法</a></li>
			</ul>
			<div class="wall" style="margin-bottom:20px;">
			
			
			
			<!-- 迭代资料列表 -->
		     	<c:forEach items="${requestScope.ideas }" var="idea">
		     		<blockquote>
			     		<h4><a href="idea.jspx?_m=comment&id=${idea.id }"> ${idea.title }
			     		</a></h4>
			     		<hr/>
			     		<p>
		     				<c:choose>
				      			<c:when test="${fn:length(idea.content) < 200 }">
				      				 ${idea.content }
				      			</c:when>
				      			<c:otherwise>
				      				 ${fn:substring(idea.content,0,200)}...
				      			</c:otherwise>
					      	</c:choose>
			     		</p>
			     				${idea.employee.username }
			     				发布于${idea.createtime }
			     		<a title="编辑" href="idea.jspx?_m=edit&id=${idea.id }"><i class="icon-pencil"></i></a>
			     		<a title="删除" class="delme" href="idea.jspx?_m=del&id=${idea.id }"><i class="icon-trash"></i></a>
		     		</blockquote>
		     	</c:forEach>
			
			
				
				
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>

				<!-- <div class="pagination pull-right">
				  <ul>
					<li><a href="#">Prev</a></li>
					<li class="active"><a href="#">1</a></li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">4</a></li>
					<li><a href="#">Next</a></li>
				  </ul>
				</div> -->
	
	 <script type="text/javascript">
  		$(document).ready(function(){
  			$(".delme").click(function(){
  				if(confirm('确实要删除？')){return true;}else{return false;};
  			});
  		});
  	</script>

</body></html>